package org.wlc.demov3.service.impl;


import org.wlc.Result;
import org.wlc.demov1.ActivityService;
import org.wlc.demov1.EStatus;
import org.wlc.demov3.service.State;

/**
 * 活动状态；活动开启
 * @author wanglichao
 */
public class OpenState extends State {
@Override
    public Result arraignment(String activityId, Enum<EStatus> currentStatus) {
        return new Result("0001", "活动开启不可提审");
    }
    @Override

    public Result checkPass(String activityId, Enum<EStatus> currentStatus) {
        return new Result("0001", "活动开启不可审核通过");
    }
    @Override
    public Result checkRefuse(String activityId, Enum<EStatus> currentStatus) {
        return new Result("0001", "活动开启不可审核拒绝");
    }

    @Override
    public Result checkRevoke(String activityId, Enum<EStatus> currentStatus) {
        return new Result("0001", "活动开启不可撤销审核");
    }
    @Override
    public Result close(String activityId, Enum<EStatus> currentStatus) {
        ActivityService.execStatus(activityId, currentStatus, EStatus.Close);
        return new Result("0000", "活动关闭完成");
    }
    @Override
    public Result open(String activityId, Enum<EStatus> currentStatus) {
        return new Result("0001", "活动不可重复开启");
    }
    @Override
    public Result doing(String activityId, Enum<EStatus> currentStatus) {
        ActivityService.execStatus(activityId, currentStatus, EStatus.Doing);
        return new Result("0000", "活动变更活动中完成");
    }

}